.class Les/l40;
.super Lcom/estrongs/fs/a;
.source "Smb2FileObject.java"


# instance fields
.field protected p:Z

.field protected q:Z


# direct methods
.method public constructor <init>(Les/ad0;Ljava/lang/String;)V
    .locals 4

    .line 6
    invoke-direct {p0, p2}, Lcom/estrongs/fs/a;-><init>(Ljava/lang/String;)V

    const/4 p2, 0x1

    .line 7
    iput-boolean p2, p0, Les/l40;->p:Z

    .line 8
    iput-boolean p2, p0, Les/l40;->q:Z

    .line 9
    invoke-virtual {p1}, Les/ad0;->c()Ljava/lang/String;

    move-result-object v0

    .line 10
    :try_start_0
    invoke-virtual {p1}, Les/ad0;->b()J

    move-result-wide v1

    const-class v3, Lcom/hierynomus/msfscc/FileAttributes;

    invoke-static {v1, v2, v3}, Les/ed0$a;->a(JLjava/lang/Class;)Ljava/util/EnumSet;

    move-result-object v1

    .line 11
    sget-object v2, Lcom/hierynomus/msfscc/FileAttributes;->FILE_ATTRIBUTE_DIRECTORY:Lcom/hierynomus/msfscc/FileAttributes;

    invoke-virtual {v1, v2}, Ljava/util/EnumSet;->contains(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    const-string v2, "/"

    invoke-virtual {v0, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_0

    const/4 v2, 0x0

    .line 12
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v3

    sub-int/2addr v3, p2

    invoke-virtual {v0, v2, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    .line 13
    :cond_0
    invoke-virtual {p1}, Les/ad0;->d()J

    move-result-wide p1

    iput-wide p1, p0, Lcom/estrongs/fs/a;->e:J

    .line 14
    sget-object p1, Lcom/hierynomus/msfscc/FileAttributes;->FILE_ATTRIBUTE_DIRECTORY:Lcom/hierynomus/msfscc/FileAttributes;

    invoke-virtual {v1, p1}, Ljava/util/EnumSet;->contains(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 15
    sget-object p1, Lcom/estrongs/fs/l;->c:Lcom/estrongs/fs/l;

    iput-object p1, p0, Lcom/estrongs/fs/a;->a:Lcom/estrongs/fs/l;

    goto :goto_0

    .line 16
    :cond_1
    sget-object p1, Lcom/estrongs/fs/l;->d:Lcom/estrongs/fs/l;

    iput-object p1, p0, Lcom/estrongs/fs/a;->a:Lcom/estrongs/fs/l;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 17
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 18
    :goto_0
    invoke-virtual {p0, v0}, Les/l40;->setName(Ljava/lang/String;)V

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;Z)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/fs/a;-><init>(Ljava/lang/String;)V

    const/4 p1, 0x1

    .line 2
    iput-boolean p1, p0, Les/l40;->p:Z

    .line 3
    iput-boolean p1, p0, Les/l40;->q:Z

    if-eqz p2, :cond_0

    .line 4
    sget-object p1, Lcom/estrongs/fs/l;->c:Lcom/estrongs/fs/l;

    iput-object p1, p0, Lcom/estrongs/fs/a;->a:Lcom/estrongs/fs/l;

    goto :goto_0

    .line 5
    :cond_0
    sget-object p1, Lcom/estrongs/fs/l;->d:Lcom/estrongs/fs/l;

    iput-object p1, p0, Lcom/estrongs/fs/a;->a:Lcom/estrongs/fs/l;

    :goto_0
    return-void
.end method


# virtual methods
.method public g()Z
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/fs/a;->c:Ljava/lang/String;

    invoke-static {v0}, Les/m40;->p(Ljava/lang/String;)Les/sd0;

    move-result-object v0

    .line 2
    iget-object v1, p0, Lcom/estrongs/fs/a;->a:Lcom/estrongs/fs/l;

    sget-object v2, Lcom/estrongs/fs/l;->c:Lcom/estrongs/fs/l;

    if-ne v1, v2, :cond_0

    .line 3
    iget-object v1, p0, Lcom/estrongs/fs/a;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Les/sd0;->b(Ljava/lang/String;)Z

    move-result v0

    return v0

    .line 4
    :cond_0
    iget-object v1, p0, Lcom/estrongs/fs/a;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Les/sd0;->a(Ljava/lang/String;)Z

    move-result v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return v0

    :catch_0
    move-exception v0

    .line 5
    new-instance v1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v1, v0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v1
.end method

.method protected j()Z
    .locals 1

    .line 1
    invoke-virtual {p0}, Les/l40;->l()Z

    move-result v0

    return v0
.end method

.method protected k()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Les/l40;->q:Z

    return v0
.end method

.method protected l()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Les/l40;->p:Z

    return v0
.end method

.method public setName(Ljava/lang/String;)V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/fs/a;->d:Ljava/lang/String;

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    .line 2
    :goto_0
    invoke-super {p0, p1}, Lcom/estrongs/fs/a;->setName(Ljava/lang/String;)V

    if-eqz v0, :cond_2

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/fs/a;->i()Lcom/estrongs/fs/l;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/fs/l;->b()Z

    move-result p1

    if-eqz p1, :cond_2

    .line 4
    iget-object p1, p0, Lcom/estrongs/fs/a;->b:Ljava/lang/String;

    const-string v0, "/"

    invoke-virtual {p1, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_1

    .line 5
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/estrongs/fs/a;->b:Ljava/lang/String;

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/fs/a;->b:Ljava/lang/String;

    .line 6
    :cond_1
    iget-object p1, p0, Lcom/estrongs/fs/a;->c:Ljava/lang/String;

    invoke-virtual {p1, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_2

    .line 7
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/estrongs/fs/a;->c:Ljava/lang/String;

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/fs/a;->c:Ljava/lang/String;

    :cond_2
    return-void
.end method
